package com.ruoyi.factorydata.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 客户等级数据对象 customer_level_data
 *
 * @author ruoyi
 * @date 2025-07-03
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.CustomerLevelDataMapper.CustomerLevelDataResult")
public class CustomerLevelData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 级别名称
     */
    @Excel(name = "级别名称")
    private String levelName;

    /**
     * 客户等级
     */
    @Excel(name = "客户等级")
    private Long levelNumber;

    /**
     * 折扣率
     */
    @Excel(name = "折扣率")
    private BigDecimal discountRate;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;

}